-- <name> must have digits preceded by other characters
'^%D*%d+%D+', -- <name> must have digits followed by other characters...
221 KB (31,671 words) - 15:32, 23 March 2024
the returned precision under
-- some circumstances because the terminal digits will be inaccurately reported.
if order + precision >= 14 then
if order...
14 KB (2,218 words) - 22:23, 11 March 2021
then
return args.AlternativeMap
elseif args.relief then
local digits = mw.ustring.match(args.relief,'^[1-9][0-9]?$') or '1' -- image1 to image99...
21 KB (3,117 words) - 00:14, 30 April 2024
translate an output string of en digits to local language
local to_en_table -- to translate an input string of digits in local language to en
-- Use...
133 KB (20,932 words) - 08:10, 14 January 2024
-- when true translates Western date digit to the local-wiki's language digits (date_names['local_digits']); always false at en.wiki
local enable_sort_keys...
109 KB (14,330 words) - 15:32, 23 March 2024
template parameters
-- Postcondition:
-- Return string with digits including "0"
-- Uses:
-- TemplatePar.count()
return tostring(...
55 KB (5,364 words) - 18:13, 19 April 2023
for enumerated parameters place an octothorp (#) where the enumerator digits are placed in the parameter names:
<from#> : <to#>
]]
local function...
12 KB (1,792 words) - 21:11, 21 October 2022
['vis-forfattere'] = 'display-authors', -- accepts cs1|2 values: digits or 'etal' string so these are simple translations
['vis-redaktører'] =...
103 KB (10,310 words) - 19:32, 8 December 2023
fwanchor + k + g --override carefully
local to2 = nil --last 2 digits of to4, IIF exists
if k == -1 then to4 = 'present' --see if end-cat...
81 KB (11,178 words) - 15:30, 2 April 2024
-- less than 4 digits without subcode (3 digits with subcode is legitimate)
'^%d%d?%.[%d%.]+', -- 1 or 2 digits with subcode
'^5555$'...
75 KB (11,621 words) - 16:42, 25 November 2023
summer, fall
OCinSoutput["rft.quarter"] = data.Quarter; -- single digits 1->first quarter, etc.
OCinSoutput["rft.chron"] = data.Chron; ...
16 KB (2,260 words) - 19:19, 12 August 2023
language for output digits (both en and local digits are always accepted for input)
["en"] = "opt_lang_en", -- use en digits for numbers, regardless...
19 KB (2,293 words) - 04:48, 19 April 2023
tonumber(num) then
local n = tonumber(num)
digits = tonumber(digits)
if digits == 1 then
if n >= 0 and n < 10 then
return '<span...
23 KB (3,726 words) - 11:36, 6 September 2023
with hyphens, a hyphen, one or more digits (e.g., T-AO-157)
dab:match ('%([12]%d%d%d%)') then -- four digits representing year in the range 1000–2999...
56 KB (8,350 words) - 00:41, 12 April 2024
2)) * tonumber( string.char(v) ); -- multiply odd index digits by 1, even index digits by 3 and sum; includes check digit
end
return temp % 10 ==...
9 KB (1,331 words) - 23:27, 3 November 2022
function delimit(sign, numstr, fmt)
-- Return sign and numstr (unsigned digits or numdot only) after formatting.
-- Four-digit integers are not formatted...
23 KB (3,523 words) - 03:19, 30 June 2022
included; ignored else
<portion> - optional; one or two digits when <separator> is '.'; two digits else
returns correct utc offset string when input has...
21 KB (3,300 words) - 21:55, 21 October 2022
NAME = manager name (any text)
-- FROM = four digits (from year)
-- TO = 1, 2, 3 or 4 digits (to year), or empty
-- Alternatively, an item can...
7 KB (1,036 words) - 14:32, 21 December 2023
parse_formatted_number (amount)
local count;
local parts = {};
local digits = {};
local decimals;
local sign = '';
local _;
if amount:find ('[^%-−%d%...
13 KB (1,739 words) - 22:00, 21 October 2022
attr.style .. "font-style: italic;"
line[n].tone_sup = true -- single digits are assumed to be tone markers and will hence be superscripted
if...
31 KB (4,613 words) - 02:37, 25 January 2024
(Klingon) added conversion to WGS84 map datum and removed limitation of digits of the grid ref
v 1.04 10 Aug 2005 Richard correct error trapping (only...
19 KB (3,089 words) - 13:13, 17 December 2023
('%d+', '#'); -- for enumerated parameters, convert the enumerator digits to a single '#' character; all others unmolested
end
local param_is_valid;...
62 KB (8,935 words) - 15:06, 9 January 2024
and size then
local digits = math.floor(size / 4)
if digits < 3 then
digits = 3
end
local wildcard = digits % 4 == 0 and ':*' or '*'...
29 KB (4,545 words) - 07:52, 15 June 2021
bar*-from, or bar*-to,
-- where * is a string of digits. That string of digits is then used to
-- find corresponding parameters of the individual bar...
35 KB (5,209 words) - 17:04, 4 September 2023
capture digits again, this time '10am' '8p.m.' will be separate
-- return ELEMENT_INVALID -- just the invalid, the number of digits (3+) won't...
52 KB (6,277 words) - 23:17, 25 February 2019
page:match ('^%a?%a?%d+'); -- one or two letters followed by digits or just digits (supplement to issue 61608)
else
page = page:match ('^%d+');...
12 KB (1,818 words) - 21:21, 21 October 2022
or 1582 > year or 9999 < year then return false; end -- must be four digits in gregorian calander
if month then
month = tonumber (month);
if...
13 KB (2,021 words) - 06:14, 17 March 2023
just those templates that have |date=DD Month YYYY where
DD is one or two digits or a range DD-DD Month YYYY
]]
local function count_cs1_dates_dmy (template...
43 KB (5,932 words) - 01:23, 10 May 2024
decodeIntegerStringificationLength = 10
--
-- The value is the number of digits (of the integer part of the number) at which to stringify numbers.
--
--...
54 KB (7,054 words) - 03:48, 8 December 2016
rules. However we still don't
-- use the rarely supported Roman extension digits after 'M' (in U+2160..2188), but use
-- the more common notation with diacritical...
13 KB (1,818 words) - 14:44, 24 February 2019
first four digits must be a year. This function makes these tests:
length must be 19 characters
characters in position
1–4 must be digits and must...
2 KB (367 words) - 21:03, 21 October 2022
and R{\'e}nyi, A.}, TITLE = {Some further statistical properties of the digits in {C}antor's series. }, JOURNAL = {Acta Math. Acad. Sci. Hungar.}, FJOURNAL...
766 KB (112,187 words) - 16:25, 9 November 2021
and Alfréd {Rényi}},Title = {{Some further statistical properties of the digits in Cantor's series.}},FJournal = {{Acta Mathematica Academiae Scientiarum...
656 KB (90,612 words) - 23:40, 6 August 2022
24] = [==[P. Erdõs, A. Rényi: Some further statistical properties of the digits in Cantor's series, Acta Math. Acad. Sci. Hungar. 10 (1959), 21--29 (unbound...
260 KB (40,993 words) - 16:25, 9 November 2021
tonumber(num) then
local n = tonumber(num)
digits = tonumber(digits)
if digits == 1 then
if n >= 0 and n < 10 then
return '<span...
13 KB (2,192 words) - 23:42, 9 October 2023
-- If year<1000 than either keep the date padded to the length of 4 digits or trim it
-- decide if the year will stay padded with zeros (for years...
16 KB (2,196 words) - 16:20, 29 April 2024
local patterns = {
-- strings starting with YYYY-MM-DD HH:MM:SS. Year 4 digits (if we know seconds than it was within the last 100 years), the rest 1-2...
8 KB (1,402 words) - 16:35, 29 April 2024